#ifndef __USER_H__
#define __USER_H__

#include "core.h"

#define USER_NAME_LENGTH        (16)
#define USER_PASSWORD_LENGTH    (16)

#define USER_INFO_FILE    "./lib/user_info.conf"
#define LIB_DIR            "./lib"

struct login_info {
    char is_login;
    char name[USER_NAME_LENGTH];
    char password[USER_PASSWORD_LENGTH];
};

extern int user_register(struct login_info *);
extern int user_login(struct login_info *);
extern int user_logout(struct login_info *);

#endif